<meta charset="utf-8">
<title>交易统计</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="网站描述">
<meta name="keywords" content="">
<meta name="author" content="wangl">
<link rel="icon" href="http://ow9lg82yy.bkt.clouddn.com/24f5c360-485d-4a6d-9468-2a61c353cf37.ico">
<link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all">
<link rel="stylesheet" href="/static/css/user.css" media="all">
<link rel="stylesheet" href="/static/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">

<style>
    * {
        margin: 0;
        padding: 0;
    }

    #ele {
        padding: 20px
    }

    .clearfix::after {
        content: ".";
        clear: both;
        display: block;
        overflow: hidden;
        font-size: 0;
        height: 0;
    }

    .clearfix {
        zoom: 1;
    }

    .Pagination ul {
        list-style: none;
    }

    .Pagination .total_num, .first_page, .prepage, .list_box, .nextpage, .last_page, .total_page, input, .redir {
        float: left;
    }

    .Pagination ul li {
        float: left;
        background-color: #ccc;
        border-radius: 5px;
        text-align: center;
        line-height: 22px;
        width: 22px;
        height: 22px;
        font-size: 12px;
        margin: 0 5px;
        cursor: pointer;
        color: #8b8b8b
    }

    .Pagination ul li:hover {
        background-color: #58acf4;
        color: #fff;
    }

    .Pagination .total_num {
        margin: 0 5px;
    }

    .Pagination .total_num i {
        font-style: normal;
    }

    .Pagination .list_box {
        width: 320px;
        overflow: hidden;
        position: relative;
        height: 32px;
    }

    .Pagination .list_box ul {
        position: absolute;
        top: 0;
        left: 0;
    }

    .Pagination .prepage {
        background-color: #ccc;
        border-radius: 5px;
        padding: 3px 10px;
        font-size: 12px;
        margin: 0 5px;
        cursor: pointer;
        color: #8b8b8b
    }

    .Pagination .prepage:hover {
        background-color: #58acf4;
        color: #fff;
    }

    .Pagination .nextpage {
        background-color: #ccc;
        border-radius: 5px;
        padding: 3px 10px;
        font-size: 12px;
        margin: 0 5px;
        cursor: pointer;
        color: #8b8b8b
    }

    .Pagination .nextpage:hover {
        background-color: #58acf4;
        color: #fff;
    }

    .Pagination .first_page {
        background-color: #ccc;
        border-radius: 5px;
        padding: 3px 10px;
        font-size: 12px;
        margin: 0 5px;
        cursor: pointer;
        color: #8b8b8b
    }

    .Pagination .first_page:hover {
        background-color: #58acf4;
        color: #fff;
    }

    .Pagination .last_page {
        background-color: #ccc;
        border-radius: 5px;
        padding: 3px 10px;
        font-size: 12px;
        margin: 0 5px;
        cursor: pointer;
        color: #8b8b8b
    }

    .Pagination .last_page:hover {
        background-color: #58acf4;
        color: #fff;
    }

    .Pagination .redir {
        background-color: #58acf4;
        color: #fff;
        border-radius: 5px;
        padding: 3px 10px;
        font-size: 14px;
        cursor: pointer;
    }

    .Pagination .redir:hover {
        opacity: 0.8;
    }

    .Pagination input {
        width: 50px;
        height: 25px;
        border-radius: 5px;
        border: 1px solid #ccc;
        outline: none;
        text-indent: 5px;
        margin: 0 5px;
    }

    .Pagination .short {
        background-color: #fff;
        cursor: default;
    }

    .Pagination .short:hover {
        background-color: #fff;
        color: #8b8b8b;
    }

    .Pagination_active {
        background-color: #58acf4 !important;
        color: #fff !important;
    }

    .detail-body {
        margin: 20px 0 0;
        min-height: 306px;
        line-height: 26px;
        font-size: 16px;
        color: #333;
        word-wrap: break-word;
    }

    /* blockquote 样式 */
    blockquote {
        display: block;
        border-left: 8px solid #d0e5f2;
        padding: 5px 10px;
        margin: 10px 0;
        line-height: 1.4;
        font-size: 100%;
        background-color: #f1f1f1;
    }

    /***
    *  ztree 图标变成黄色
    */
    .ztree .line {
        line-height: 0;
        border-top: none;
        float: none;
    }

    .ztree li span.button.ico_docu {
        background-position: -110px 0;
        margin-right: 2px;
        vertical-align: top;
    }

    /* code 样式 */
    code {
        display: inline-block;
        *display: inline;
        *zoom: 1;
        background-color: #f1f1f1;
        border-radius: 3px;
        padding: 3px 5px;
        margin: 0 3px;
    }

    pre code {
        display: block;
    }

</style>
<style>
    .laytable-cell-1-paramname {
        width: 220px;

    }

    .laytable-cell-1-paramname1 {
        width: 230px;
    }

    .tr {
        border: 1px solid #000000;
    }

    .td {
        border: 1px solid #000000;
    }

</style>

</head>
<body class="childrenBody">
<div >
    <div class="layui-form users_list">
        <table class="layui-table" id="test" lay-filter="demo"></table>
        <div class="layui-form users_list">
            <table class="layui-table" id="test" lay-filter="demo"></table>
            <div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1"
                 style="width:897px; ">
                <div class="layui-table-box">
                    <div>
                        <#--class="layui-table-header"-->
                        <table cellspacing="0" cellpadding="0" border="0" class="layui-table">
                            <thead>
                            <table>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname1">
                                            <span>累计用户挂买订单量</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalHangBuyOrder"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>今日挂买订单量</span></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayHangBuyOrder"></div>
                                    </td>
                                    <td class="td">
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>累计挂买量</span>
                                        </div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalHangBuyCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>今日挂买总量</span></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayHangBuyCount"></div>
                                    </td>

                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>累计用户挂卖订单量</span>
                                        </div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalHangSaleOrder">
                                        </div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>今日挂卖订单量</span></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayHangSaleOrder"></div>
                                    </td>
                                </tr>
                                <tr class="tr">

                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>累计挂卖总额</span>

                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalHangSaleCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname">
                                            <span>今日挂卖总额</span></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayHangSaleCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计成交订单量</span>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalDealOrder"></div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日成交订单量</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayDealOrder"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计成交总额</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalDealCount"></div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日成交总额</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayDealCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">

                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计回购订单量</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalBackOrder"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日回购订单量</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayBackOrder"></div>
                                    </td>

                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计回购总额</span>
                                        </div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalBackCount"></div>

                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日回购总额</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayBackCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计商城交易订单量</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalShopOrder"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日商城交易订单量</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayShopOder"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计商城交易总额</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalShopCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日商城交易金额</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayShopCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计查封用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalSealupCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日查封用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todaySealupCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计冻结用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalFrozenCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>今日冻结用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="todayFrozenCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>近3个月无交易用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="noDealThreeMonthCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>近1个月无交易用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="noDealOneMonthCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>近7天无交易用户数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="noDealSevenDayCount">

                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>累计注册会员数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="totalRegisterCount"></div>
                                    </td>
                                </tr>
                                <tr class="tr">
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>已激活注册会员数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="activedCount"></div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"><span>未激活注册会员数</span>
                                        </div>
                                    </td>
                                    <td class="td">
                                        <div class="layui-table-cell laytable-cell-1-paramname"
                                             id="unactiveCount"></div>
                                    </td>
                                </tr>


                            </table>
                            </thead>
                            <tbody id="anList">
                            </tbody>
                        </table>
                        <div class="box-tools pull-right">
                            <ul class="pagination" id="pagination_ul">
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/tools.js"></script>
<script type="text/javascript" src="/static/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/static/js/CodeConst.js"></script>
<#--<script type="text/javascript" src="/static/js/jquery-1.10.2.js"></script>-->
<script type="text/javascript" src="/static/js/common.js"></script>
<script>
    function getStatistical() {
        var statistical;
        $.ajax({
            async: false,
            url: '/back/survey/deal/list',
            type: 'get',
            success: function (baseDto) {
                dealBaseDto(baseDto, function (baseDto) {
                    statistical = baseDto.data;
                })
            }
        });
        return statistical;
    }

    var statistical = getStatistical();

    function loadData(statistical) {
        //累计用户挂买订单量
        var totalHangBuyOrderDiv = $("#totalHangBuyOrder");
        totalHangBuyOrderDiv.html(statistical.totalHangBuyOrder);
        //今日挂买订单量
        var todayHangBuyOrderDiv = $("#todayHangBuyOrder");
        todayHangBuyOrderDiv.html(statistical.todayHangBuyOrder);
        //累计挂买量
        var totalHangBuyCountDiv = $("#totalHangBuyCount");
        totalHangBuyCountDiv.html(statistical.totalHangBuyCount);
        //今日挂买总量 todayHangBuyCount
        var todayHangBuyCountDiv = $("#todayHangBuyCount");
        todayHangBuyCountDiv.html(statistical.todayHangBuyCount);
        // 累计用户挂卖订单量,今日挂卖订单量、累计挂卖总额、今日挂卖总额
        var totalHangSaleOrderDiv = $("#totalHangSaleOrder");
        totalHangSaleOrderDiv.html(statistical.totalHangSaleOrder);
        var todayHangSaleOrderDiv = $("#todayHangSaleOrder");
        todayHangSaleOrderDiv.html(statistical.todayHangSaleOrder);
        var totalHangSaleCountDiv = $("#totalHangSaleCount");
        totalHangSaleCountDiv.html(statistical.totalHangSaleCount);
        var todayHangSaleCountDiv = $("#todayHangSaleCount");
        todayHangSaleCountDiv.html(statistical.todayHangSaleCount);
        //累计成交订单量,今日成交订单量、累计成交总额、今日成交总额
        var totalDealOrderDiv = $("#totalDealOrder");
        totalDealOrderDiv.html(statistical.totalDealOrder);
        var todayDealOrderDiv = $("#todayDealOrder");
        todayDealOrderDiv.html(statistical.todayDealOrder);
        var totalDealCountDiv = $("#totalDealCount");
        totalDealCountDiv.html(statistical.totalDealCount);
        var todayDealCountDiv = $("#todayDealCount");
        todayDealCountDiv.html(statistical.todayDealCount);
        // 累计回购订单量,今日回购订单量、累计回购总额、今日回购总额
        var totalBackOrderDiv = $("#totalBackOrder");
        totalBackOrderDiv.html(statistical.totalBackOrder);
        var todayBackOrderDiv = $("#todayBackOrder");
        todayBackOrderDiv.html(statistical.todayBackOrder);
        var totalBackCountDiv = $("#totalBackCount");
        totalBackCountDiv.html(statistical.totalBackCount);
        var todayBackCountDiv = $("#todayBackCount");
        todayBackCountDiv.html(statistical.todayBackCount);
        //  累计商城交易订单量，今日商城交易订单量,累计商城交易总额，今日商城交易金额
        var totalShopOrderDiv = $("#totalShopOrder");
        totalShopOrderDiv.html(statistical.totalShopOrder);
        var todayShopOderDiv = $("#todayShopOder");
        todayShopOderDiv.html(statistical.todayShopOder);
        var totalShopCountDiv = $("#totalShopCount");
        totalShopCountDiv.html(statistical.totalShopCount);
        var todayShopCountDiv = $("#todayShopCount");
        todayShopCountDiv.html(statistical.todayShopCount);
        // 累计查封用户数，今日查封用户数，累计冻结用户数，今日冻结用户数
        var totalSealupCountDiv = $("#totalSealupCount");
        totalSealupCountDiv.html(statistical.totalSealupCount);
        var todaySealupCountDiv = $("#todaySealupCount");
        todaySealupCountDiv.html(statistical.todaySealupCount);
        var totalFrozenCountDiv = $("#totalFrozenCount");
        totalFrozenCountDiv.html(statistical.totalFrozenCount);
        var todayFrozenCountDiv = $("#todayFrozenCount");
        todayFrozenCountDiv.html(statistical.todayFrozenCount);
        //     //    近3个月无交易用户数、近1个月无交易用户数、近7天无交易用户数，点击可查看对应会员列表
        // Integer noDealThreeMonthCount;
        // Integer noDealOneMonthCount;
        // Integer noDealSevenDayCount;
        var noDealThreeMonthCountDiv = $("#noDealThreeMonthCount");
        var threeMonth = "<a href=\"/back/survey/deal/threeMonthPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.noDealThreeMonthCount + "</a>";
        noDealThreeMonthCountDiv.html(threeMonth);
        var oneMonth = "<a href=\"/back/survey/deal/oneMonthPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.noDealOneMonthCount + "</a>";
        var noDealOneMonthCountDiv = $("#noDealOneMonthCount");
        noDealOneMonthCountDiv.html(oneMonth);
        var sevenDay = "<a href=\"/back/survey/deal/sevenDayPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.noDealSevenDayCount + "</a>";
        var noDealSevenDayCountDiv = $("#noDealSevenDayCount");
        noDealSevenDayCountDiv.html(sevenDay);
        //  //    累计注册会员数、已激活注册会员数、未激活注册会员数
        // Integer totalRegisterCount;
        // Integer activedCount;
        // Integer unactiveCount;
        var totalRegisterCountDiv = $("#totalRegisterCount");
        totalRegisterCountDiv.html(statistical.totalRegisterCount);
        var activedCountDiv = $("#activedCount");
        activedCountDiv.html(statistical.activedCount);
        var unactiveCountDiv = $("#unactiveCount");
        unactiveCountDiv.html(statistical.unactiveCount);
    }
    loadData(statistical);
</script>


</html>